package com.server.mongodb.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 基本用户信息
 */
@Data
@Document("group")
public class MGGroup {

    @Id
    private Long uid; // 群uid
    private String name; // 群昵称
    private String headImage; // 群头像
    List<Long> memberUid; // 群成员uid列表
    private Long groupBossUid; // 群主uid
    boolean exist; // 用户账号是否正常使用(如果注销或异常则为false)

    public MGGroup(Long uid, String name, String headImage, List<Long> memberUid, Long groupBossUid, boolean exist) {
        this.uid = uid;
        this.name = name;
        this.headImage = headImage;
        this.memberUid = memberUid;
        this.groupBossUid = groupBossUid;
        this.exist = exist;
    }
}
